package com.learn.design.singleresponsibility.now.v2;

/**
 * 不分解Vehicle类，直接修改Vehicle类中的方法即可
 */
public class Vehicle {

    public void runRoad(String name) {
        System.out.println(name + "在地上跑！");
    }

    public void runAir(String name) {
        System.out.println(name + "在天上飞！");
    }

    public void runWater(String name) {
        System.out.println(name + "在水里游！");
    }
}
